{% extends 'fs/base.html' %}

{% load static %}
{% load fs_extras %}

{% block title %}
    {{ current_path }}
{% endblock %}

{% block content %}

{% if is_index is None %}
<tr><td colspan="3"><p class="indexof">当前位置:{{ current_path }}</p></td></tr>
<tr><td class="updir" colspan="3"><a {% if upper_index is None %} href="{% url 'fs:fs_list' upper_path %}" {% else %} href="{% url 'fs:index' %}"{% endif %}><img class="icon" src="{% static 'fs/updir.gif' %}" alt="">上级目录</a></td></tr>
{% endif %}
<tr>
    <td class="nameheader">
        <a href="{% url 'fs:fs_list' current_path %}?sort=name&amp;ascending=0">
            <span class="nobr"><nobr>名称<img class="updown" src="{% static 'fs/up.gif' %}" alt=""></nobr></span>
        </a>
    </td>
    <td class="sizeheader">
        <a href="{% url 'fs:fs_list' current_path %}?sort=size&amp;ascending=0">
            <span class="nobr"><nobr>大小</nobr></span>
        </a>
    </td>
    <td class="modifiedheader">
        <a href="{% url 'fs:fs_list' current_path %}?sort=date_modified&amp;ascending=0">
            <span class="nobr"><nobr>修改日期</nobr></span>
        </a>
    </td>
</tr>
<tr><td colspan="3" class="lineshadow" height="1"></td></tr>
{% for entry in entries %}
<tr class="trdata1">
    {% if entry.is_dir %}
    <td class="folder"><span class="nobr"><nobr><a href="{% url 'fs:fs_list' entry.path %}"><img class="icon" src="{% static 'fs/folder.gif' %}" alt="">{{ entry.name }}</a></nobr></span></td>
    {% else %}
    <td class="file"><span class="nobr"><nobr><a href="{% url 'fs:download_path' entry.path %}"><img class="icon"  src="{% static 'fs/file.gif' %}" alt="">{{ entry.name }}</a></nobr></span></td>
    {% endif %}
    <td class="sizedata"><span class="nobr"><nobr>
    {% if not entry.is_dir %}
        {{ entry.size | convert_size }}
    {% endif %}
    </nobr></span></td>
    <td class="modifieddata"><span class="nobr"><nobr><span class="nobr"><nobr>{{ entry.modified_time }}</nobr></span></td>
</tr>
{% endfor %}

{% endblock %}